package cn.iocoder.yudao.module.product.controller.admin.shopfavorite.vo;

import cn.iocoder.yudao.module.product.dal.dataobject.conveniencestore.ConvenienceStoreDO;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.VO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 商铺收藏 Response VO")
@Data
public class ShopFavoriteRespVO implements VO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "111")
    private Long id;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @Trans(type = TransType.SIMPLE, targetClassName = "cn.iocoder.yudao.module.member.dal.dataobject.user.MemberUserDO", fields = "nickname", ref = "userName")
    private Long userId;

    @Schema(description = "用户名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private String userName;

    @Schema(description = "商铺ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @Trans(type = TransType.SIMPLE, target = ConvenienceStoreDO.class, fields = "name", ref = "shopName")
    private Long shopId;

    @Schema(description = "商铺名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private String shopName;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime createTime;

}